<template>
  <!-- 查看 -->
  <div>
    <el-dialog title="查看" :visible.sync="ExamineDiaClone" width="30%" :before-close="handleClose">
      <span>{{ExamineDia}}</span>
      <span slot="footer" class="dialog-footer">
        <el-button @click="ExamineDiaClone = false">取 消</el-button>
        <el-button type="primary" @click="ExamineDiaClone = false">确 定</el-button>
      </span>
    </el-dialog>
  </div>
</template>
<script>
export default {
    props:['ExamineDia'],
    data(){
        return{
            ExamineDiaClone:false,//开关
        }
    },
    created(){
        this.ExamineDiaClone=JSON.parse(JSON.stringify(this.ExamineDia))
    },
     methods: {
      handleClose(done) {
        this.$confirm('确认关闭？')
          .then(_ => {
            done();
          })
          .catch(_ => {});
      }
     }
    // watch:{
    //     ExamineDia(){
    //         this.ExamineDiaClone=JSON.parse(JSON.stringify(this.ExamineDia))
    //     }
    // }
};
</script>